# -*- mode: python; coding: utf-8; -*-
##--------------------------------------------------------------------------##
##
## Copyright (C) 1998-2003 Markus Oberhumer <markus@oberhumer.com>
## Copyright (C) 2003 Mt. Hood Playing Card Co.
## Copyright (C) 2005-2010 Skomoroh <skomoroh@users.sourceforge.net>
## Copyright (C) 2010-2013 Jeremy Austin-Bardo <tjaustinbardo@gmail.com>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
##
##--------------------------------------------------------------------------##
__docformat__ = "restructuredtext en"

import logging

Logger = logging.getLogger('PySolFC.GameMove')


# Overide autostacks to disable quickplay
flip_drop = lambda s: s[:2] + ((),)

# Overide autostacks to disable drop
flip_quickplay = lambda s: s[:1] + ((),) + s[-1:]

# Overide autostacks to disable flip
drop_quickplay = lambda s: ((),) + s[-2:]

# Overide autostacks to disable all but flip
flip = lambda s: s[:1] + ((),) * 2

# Overide autostacks to disable all but quickplay
quickplay = lambda s: ((),) * 2 + s[-1:]

# Overide autostacks to disable all but drop
drop = lambda s: ((),) + s[1] + ((),)

# Overide autostacks to disable all
none = lambda s: ((),) * 3